import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    name: '',
    path: '',
    redirect: { name: 'home' },
  },
  {
    name: 'home',
    path: '/home',
    meta: {
      title: 'Home'
    },
    component: () => import('./../views/Home.vue'),
  },
  {
    name: 'word',
    path: '/word',
    meta: {
      title: 'Word'
    },
    component: () => import('./../views/Word.vue'),
  },
  {
    name: 'article',
    path: '/article',
    meta: {
      title: 'Article'
    },
    component: () => import('./../views/Article.vue'),  
  },
  {
    name: 'sentences',
    path: '/sentences',
    meta: {
      title: 'Sentences'
    },
    component: () => import('./../views/Sentences.vue'),
  }
]
const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router